package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductDao {

    Product selectById(int id);
    int batchDelete(int ...ids);
    boolean deleteById(int id);
    List<Product> selectByCategoryId(int categoryId);
    List<Product> query(int page,int pageSize,String name,String description,String price,String status);
    int selectCount(String name,String description,String price,String status);
    boolean insert(Product product);
    boolean update(Product product);
}
